The RichTextEditor Component > Customizing the RichTextEditor component

 

Customizing the RichTextEditor component

You can customize the appearance of a component by changing properties of the FStyleFormat object. If you want to change a component's appearance completely, you can reskin the component.

 
Modifying FStyle format properties

The majority of the FStyleFormat properties will affect the RichTextEditor component is it consists of so many internal components. You can change individual elements, or you can set global properties using globalStyleFormat.

Here is an example of how to use the FStyleFormat object to set style properties for the RichTextEditor component:

globalStyleFormat.face = 0xCC0000;
globalStyleFormat.highlight = 0x33aa99;
globalStyleFormat.apply();

For more information about the FStyleFormat object and a list of all its properties, see the FStyleFormat entries in the online ActionScript Dictionary in Flash MX.

 
Reskinning the RichTextEditor component

When you add components to a Flash document, a Flash UI Components folder is added to the Library panel. That folder contains a subdirectory named Component Skins. Within that subdirectory is a skins subdirectory for each component that contains the user interface elements that you can redesign. You can edit the skins to completely change the appearance of components. You can change the skin of an instance of a component by selecting the component on the Stage and selecting Edit > Edit in Place. You can also edit the component skin by double-clicking it in the directory in the Library panel.

The assets for the RichTextEditor component are located in the Library panel in the Flash UI Components\Core Assets - Developer Only\RichTextEditor Assets folder.

For more information on customizing component skins, see the Flash MX Help.